<template>
  <el-row class="row">
    <el-col :sm="12" :lg="6">
      <el-result icon="warning" title="页面未找到" sub-title="请输入正确的页面">
        <template #extra>
          <el-button type="primary" @click="goHome">回到首页</el-button>
        </template>
      </el-result>
    </el-col>
  </el-row>
</template>

<script lang="ts" setup>
import {} from "vue";
import { useRouter } from "vue-router";
const router = useRouter();

const goHome = () => {
  router.push("/");
};
</script>

<style lang="scss" scoped>
.row {
  width: 100%;
  margin-top: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>
